#ifndef _ERROR_HANDLING_H_
#define _ERROR_HANDLING_H_

long ErrorCode;


#define GPS_ERROR_SUCCESS			0 //The operation completed successfully.
#define GPS_ERROR_CREATE_EVENT		1 //fail to create event
#define GPS_ERROR_OPEN_PORT			2 //Error opening port
#define GPS_ERROR_GET_CONFIG		3 //Get configuration port has problem
#define GPS_ERROR_SET_CONFIG		4 //Set configuration port has problem
#define GPS_ERROR_SET_EVEN_MASK		5 //Set even mask Error
#define GPS_ERROR_SET_COMM			6//Fail to initializes the communications parameters
#define GPS_ERROR_PURGE_BUFFER		7//purge communication buffer error
#define GPS_ERROR_SET_COMM_TIMEOUTS	8//error occureed. Inform user
#define GPS_ERROR_THREAD			9//Fail to open thread

#define GPS_ERROR_CLOSE_PORT		10//Fail to close port
#define GPS_ERROR_CLOSE_THREAD		11//Fail to close thread

#define GPS_ERROR_WRITE				12//write error

#endif